Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Scripting Additions Guide /
Chapter 2 - Scripting Addition Commands / Command Definitions
/


Current Date

The Current Date command returns a date value that represents the current time, day, and date. It is the only command provided by the Current Date scripting addition.

SYNTAX
current date
RESULT
A date value.

EXAMPLES
set timeOfTransfer to current date
get timeOfTransfer
if (current date) = ÿ   date "Saturday, January 23, 1993 12:00:00 AM" then
      print the front window
else
   return "The date is not " & ÿ      "Saturday, January 23, 1993 12:00:00 AM"end if
ERRORS
Error
number
Error message
-108Out of memory.
-1700Can't make some data into the expected type.
-1701Some parameter is missing for <commandName>.
-1704Some parameter was invalid.
-1705Operation involving a list item failed.
-1718Reply has not yet arrived.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
18 DEC 1996